<template>
    <div class="TaskManagement">
        <!-- 右侧 -->
        <div class="TaskManagement_right scrollbar">
            <!-- 右上 -->
            <div class="TaskManagement_right_top">
                <div class="TaskManagement_right_top_header">
                    <div class="TaskManagement_right_top_header_box">
                        <div class="icon_box">
                            <i class="iconfont icon-yueyongdianliangbili"></i>
                        </div>
                        <div class="TaskManagement_right_top_header_box_name">
                            <div class="name">详情</div>
                            <div class="name_val">张三的详情</div>
                        </div>
                    </div>

                </div>
                <div class="TaskManagement_right_top_other">
                    <div class="name">进度:</div>
                    <a-progress :percent="66" />
                </div>
            </div>
            <!-- 右下 -->
            <div class="TaskManagement_right_bottom">
                <a-tabs default-active-key="1">
                    <a-tab-pane key="1">
                        <span slot="tab" class="title">
                            <i class="iconfont icon-bg-info"></i>
                            <div>详细信息</div>
                        </span>
                        <div class="info_box">
                            <!-- 我是表格组件 -->
                            <ExternalDataRightTable ></ExternalDataRightTable>
                        </div>
                    </a-tab-pane>

                </a-tabs>
            </div>
        </div>
    </div>
</template>

<script>

import ExternalDataRightTable from './ExternalDataRightTable'

export default {
    data() {
        return {
            photoVisible: false,
            bigImgUrl: "",

        };
    },
    components: {
        ExternalDataRightTable
    },

    methods: {
        showBigImage(e) {
            //点击图片函数，点击后，把photoVisible设置成true
            if (e != "") {
                this.photoVisible = true;
                this.bigImgUrl = e.currentTarget.src;
            }
        },

        onSearch() { }
    }
};
</script>

<style lang="scss">
.TaskManagement {
    display: flex;
    flex-direction: row;
    height: 100%;

    .TaskManagement_right {
        overflow-y: auto;
        flex: 1;
        background: #fff;
        padding: 10px;
        border-radius: 5px;

        .TaskManagement_right_top {
            width: 100%;

            .TaskManagement_right_top_header {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 0 10px;
                background: #f3f3f3;

                .TaskManagement_right_top_header_box {
                    display: flex;
                    flex-direction: row;
                    padding: 10px 0;
                    align-items: center;

                    .icon_box {
                        width: 40px;
                        height: 40px;
                        background: #4bc076;
                        border-radius: 5px;
                        margin-right: 10px;

                        i {
                            color: #fff;
                            font-size: 26px;
                        }
                    }

                    .TaskManagement_right_top_header_box_name {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-start;
                        justify-content: flex-start;

                        .name {
                            font-size: 14px;
                        }

                        .name_val {
                            font-size: 18px;
                            font-weight: 600;
                        }
                    }
                }

            }

            .TaskManagement_right_top_other {
                display: flex;
                flex-direction: row;
                align-items: center;
                padding: 10px;

                .ant-progress-outer {
                    // padding-right: 100px !important;
                    padding-right: 60px !important;
                }

                .ant-progress-text {
                    // width: 100px !important;
                    margin-left: -10px !important
                }

                .name {
                    // flex: 1;
                    font-size: 16px;
                    font-weight: 600;
                    margin-right: 12px;
                    white-space: nowrap;
                }
            }
        }

        .TaskManagement_right_bottom {
            .ant-collapse-header {
                text-align: left !important;
                font-size: 14px !important;
                font-weight: 600 !important;
            }

            .title {
                display: flex;
                flex-direction: row;
                align-items: flex-start;

                i {
                    margin-right: 2px;
                }

                div {
                    font-size: 14px;
                    font-weight: 600;
                }
            }

            .info_box {
                .header {
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;

                    .right_num {
                        font-weight: 400;
                        color: #999;
                    }
                }

                .info {
                    .name {
                        text-align: left;
                        font-weight: 600;
                        margin-bottom: 6px;
                    }

                    .weight {
                        font-weight: 600;
                        background: #eeeeee;
                    }

                    .info_table {
                        padding: 0 10px;
                        display: flex;
                        flex-direction: row;
                        line-height: 36px;
                        border-bottom: 1px solid #e4e4e4;
                        flex-wrap: nowrap;

                        div {
                            // flex: 1;
                            flex-wrap: nowrap;
                            font-size: 14px;
                            text-align: left;
                        }
                    }
                }
            }
        }
    }
}
</style>